package com.example.ymm.modules1.service.hl;

import com.example.ymm.base.BaseService;
import com.example.ymm.model.TableList;
import com.example.ymm.model.YmPageDto;
import com.example.ymm.modules1.entity.hl.yw.YwUser;
import com.example.ymm.modules1.entity.ms.DEmployee;
import com.example.ymm.modules1.query.hl.YwUserQueryCriteria;

import java.util.List;

public interface YwUserService extends BaseService<YwUser> {


    TableList<YwUser> list(YwUserQueryCriteria criteria, YmPageDto ymPage);

    List<YwUser> queryAll(YwUserQueryCriteria criteria);

    /**
     * 查询企业成员id
     * @param userName
     * @return
     */
    YwUser getMemberId(String userName);


    /**
     * 根据用户名查询 ms系统用户信息 并切换到数据源 slave2
     * @param userName
     * @return
     */
    DEmployee getUserInfoToSlave2(String userName);


}
